package com.roy.eureka.client.service;

import java.util.List;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import com.roy.eureka.api.dto.User;
import com.roy.eureka.client.config.FeignConfig;

@FeignClient(name="EurekaServerDemo",configuration=FeignConfig.class)
public interface UserService {

	@RequestMapping(value="/testServe/getUser")
	public List<User> getUser(@RequestParam(value = "i") int i);
	
	@RequestMapping(value="/testServe/getSomeUsers")
	public List<User> getSomeUsers(@RequestBody List<User> users);
	
	@RequestMapping(value="/testServe/getOneUser")
	public User getOneUsers(@RequestBody User user);
	
	@RequestMapping(value="/testServe/getStringInfo")
	public String getStringInfo(@RequestParam(value = "test") String test);
}
